package cn.blt.security.auth.service;

import cn.blt.security.auth.entity.SysUser;
import cn.blt.security.auth.entity.dto.UserDTO;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.blt.common.Result;

/**
 * 登录表 服务类
 * @author run
 * @since 2022-07-27
 */
public interface SysUserService extends IService<SysUser> {

    /**
     * 注册
     * @param user 用户
     * @return {@link Result}<{@link }>
     */
    Result register(SysUser user);

    /**
     * 登录
     * @param user 用户
     * @return {@link Result}
     */
    Result login(UserDTO user);

    /**
     * 当前登录人信息
     * @param token 令牌
     * @return {@link Result}
     */
    Result info(String token);
}
